#include "stdafx.h"

#include <Money.h>


namespace
{
	TEST( Dollar, Multiplication )
	{
		const auto five( Money::Dollar( 5 ) );
		EXPECT_EQ( *Money::Dollar( 10 ), *(*five * 2) );
		EXPECT_EQ( *Money::Dollar( 15 ), *(*five * 3) );
	}

	TEST( Dollar, Equality )
	{
		EXPECT_EQ( *Money::Dollar( 5 ), *Money::Dollar( 5 ) );
		EXPECT_NE( *Money::Dollar( 5 ), *Money::Dollar( 6 ) );
	}

} // unnamed namespace
